//
//  CustomMaskView.m
//  jingjing2.0
//
//  Created by apple on 16/5/16.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "CustomMaskView.h"

@implementation CustomMaskView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(id)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {// 10 228 138
        self.backgroundColor = [UIColor clearColor];
        self.layer.borderWidth = 1;
        self.layer.borderColor = [[UIColor colorWithRed:10/255.0 green:228/255.0 blue:138/255.0 alpha:1]CGColor];
        
        UIImageView * imageView = [[UIImageView alloc]initWithFrame:CGRectMake(frame.size.width - 25 - 5, (frame.size.height- 25)/2.0, 25, 25)];
        imageView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
        imageView.image = [UIImage imageNamed:@"pay_true"];
        [self addSubview:imageView];
    }
    
    return self;
}
@end
